package com.qiche.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.qiche.aspect.Result;
import com.qiche.dto.ProductCategoryDto;
import com.qiche.model.ProductCategory;

/**
 * Created by Linzw on 2018/01/24.
 */
public interface ProductCategoryService extends IService<ProductCategory>{
    PageInfo<ProductCategory> selectByPage(ProductCategory category, int start, int length);
    ProductCategory selectById(Long id);
	Result delCategory(Long categoryId);
	List<ProductCategory> selectAll();

    /**
     * 通过merchantId 获取服务列表
     * @param merchantId
     * @return
     */
    public List<ProductCategoryDto> selectProductCategoryByMerchantId(Long merchantId);

}
